package com.youhome.service.service;

import com.github.pagehelper.PageInfo;
import com.youhome.common.exception.CustomException;
import com.youhome.service.model.BSendRecordMailGather;
import com.youhome.service.model.BSendRecordMailGatherWithBLOBs;
import com.youhome.service.model.Principal;

/**
 * Created by chen365 on 2017/12/29.
 */
public interface BSendRecordMailGatherService {

    int create(BSendRecordMailGatherWithBLOBs record);

    BSendRecordMailGather selectByPrimaryKey(Long id);

    PageInfo<BSendRecordMailGather> selectByBean(Integer pageIndex, Integer pageSize, BSendRecordMailGather record);

    PageInfo<BSendRecordMailGather> selectByBean(Principal principal, Integer pageNumber, Integer pageSize) throws CustomException;
}
